package com.ls.hnks.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ls.hnks.model.UserReservedPhone;
import com.ls.hnks.service.UserReservedPhoneService;
import com.ls.hnks.mapper.UserReservedPhoneMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 15375
* @description 针对表【tb_user_reserved_phone(用户预留电话)】的数据库操作Service实现
* @createDate 2023-01-25 21:58:45
*/
@Service
public class UserReservedPhoneServiceImpl extends ServiceImpl<UserReservedPhoneMapper, UserReservedPhone>
    implements UserReservedPhoneService{

    @Autowired
    private UserReservedPhoneMapper userReservedPhoneMapper;

    @Override
    public List<UserReservedPhone> getContractsByUserId(String id) {
        QueryWrapper<UserReservedPhone> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("UserID",id);
        return userReservedPhoneMapper.selectList(queryWrapper);
    }
}




